home *** CD-ROM | disk | FTP | other *** search
- stop();
- delete ball.onEnterFrame;
- delete flame.onEnterFrame;
- ball._x = 800;
- ball._y = 130;
- flame._x = 814;
- flame._y = 130;
- ball.onEnterFrame = function()
- {
- this._x -= 60;
- flame._x = this._x + 14;
- if(this._x <= pitcher._x)
- {
- this._x = pitcher._x;
- flame._x = pitcher._x + 14;
- pitcher.play();
- pitcher.mark = pitcher._x;
- pitcher.onEnterFrame = function()
- {
- pitcher._x -= 1;
- flame._x -= 1;
- ball._x -= 1;
- if(pitcher._x < pitcher.mark - 10)
- {
- gotoAndStop("win");
- delete pitcher.onEnterFrame;
- }
- };
- delete this.onEnterFrame;
- }
- };
-